package com.goods.business.mapper;

import com.goods.common.model.business.Product;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

public interface ProductMapper extends BaseMapper<Product> {

    List<Product> selectByNameCategoryId(@Param("name")String name, @Param("category1Id")String i1,
                                @Param("category2Id")String i2, @Param("category3Id") String i3,
                                @Param("status")Integer status);

    List<Product> selectByNameCategoryId2(@Param("name")String name, @Param("category1Id")String i1,
                                          @Param("category2Id") String i,@Param("status") Integer status);

    List<Product> selectByNameCategoryId3(@Param("name")String name, @Param("category1Id") String split,
                                          @Param("status")Integer status);

    List<Product> selectByName(@Param("name") String name);

    /*List<Product> selectByCategorysAndName(@Param("c1Id") String c1Id, @Param("c2Id") String c2Id,
                                           @Param("c3Id") String c3Id, @Param("name") String name);*/
}
